package com.ciaojian.worker.model.param;

import com.ciaojian.core.enums.business.CheckUserClockTypeEnum;
import com.ciaojian.core.model.group.Save;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Atlakyn
 */
@Data
@Accessors
public class CheckUserDTO {
    @ApiModelProperty(value = "打卡记录ID")
    private Long id;

    @ApiModelProperty(value = "日期", hidden = true)
    private String date;

    @ApiModelProperty(value = "时间", hidden = true)
    private String time;

    @ApiModelProperty(value = "类型：上班打卡/下班打卡", required = true)
    @NotBlank(message = "类型不能为空", groups = Save.class)
    private String type;

    @ApiModelProperty(value = "发型师ID", required = true)
    @NotNull(message = "发型师ID不能为空", groups = Save.class)
    private Integer userId;

    @ApiModelProperty(value = "门店ID", required = true)
//    @NotNull(message = "门店ID不能为空", groups = Save.class)
    private Integer storeId;

    @ApiModelProperty(value = "地址", required = true)
    @NotBlank(message = "地址不能为空", groups = Save.class)
    private String address;

    @ApiModelProperty(value = "备注")
    private String desc;

    @ApiModelProperty(value = "距离", required = true)
    @NotBlank(message = "距离不能为空", groups = Save.class)
    private String distance;

    @ApiModelProperty("距离文本")
    private String distanceText;

    @ApiModelProperty(value = "纬度", required = true)
    @NotBlank(message = "纬度不能为空", groups = Save.class)
    private String lat;

    @ApiModelProperty(value = "经度", required = true)
    @NotBlank(message = "经度不能为空", groups = Save.class)
    private String lng;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "必须时间")
    private String needTime;

    @ApiModelProperty("打卡类型")
    @NotNull(message = "请选择打卡类型", groups = Save.class)
    private CheckUserClockTypeEnum clockType;
}
